<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
        table, th, td {border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>

    <a th:href="@{/user/ad}">添加</a>jmz
    <table class="list">
        <tr>
            <th>id</th>
            <th>姓名</th>
            <th>成绩</th>
            <th>性别</th>
            <th>手机号</th>
        </tr>
        <tr th:each="user : ${list}">
            <td th:text="${user.userId}"></td>
            <td th:text="${user.username}"></td>
            <td th:text="${user.password}"></td>
            <td th:text="${user.sex==1}?'男':'女'"></td>
            <td th:text="${user.telephone}"></td>
            <td>
                <a th:href="@{'/user/del'(userId=${user.userId})}">删除</a>
                <a th:href="@{'/user/upd'(userId=${user.userId})}">修改</a>
            </td>
           <!-- <td th:text="${#dates.format(user.birth,'yyyy-MM-dd')}"></td>-->
        </tr>
    </table>

</body>
</html>